package com.tour.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lel
 * @since 2021-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Medical对象", description="")
public class Medical implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医学常识id")
    @TableId(value = "m_id", type = IdType.AUTO)
    private Integer mId;

    @ApiModelProperty(value = "名称")
    private String medicalName;

    @ApiModelProperty(value = "内容")
    private String medicalContent;

    @ApiModelProperty(value = "投稿人")
    private String contributors;

    @ApiModelProperty(value = "阅读量")
    private Integer reading;

    @ApiModelProperty(value = "点赞量")
    private Integer likes;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
